package cc.minos.utils
{
	import flash.filters.ColorMatrixFilter;
	import flash.filters.DropShadowFilter;
	import flash.filters.GlowFilter;
	
	/**
	 * ...
	 * @author Minos
	 */
	public class FilterUtil
	{
		
		//灰色滤镜
		public static const GRAY_FILTER:ColorMatrixFilter = new ColorMatrixFilter([ .33 , .33 , .33 , 0 , 0 , .33 , .33 , .33 , 0 , 0 , .33 , .33 , .33 , 0 , 0 , 0 , 0 , 0 , 1 , 0 ] );
		
		public static function getShadow( dist:Number , side:Number , angle:Number = 45 , color:uint = 0x000000 ):DropShadowFilter
		{
			return new DropShadowFilter( dist , angle , color , 1 , side , side , .3 , 1 );
		}
		
		public static function getGlow( color:uint = 0xFFFFFF , alpha:Number = 1 , blur:Number = 3 ):GlowFilter
		{
			return new GlowFilter( color , alpha , blur , blur );
		}
	}

}